function slideLatestCar(data, $this, currentObject){
    $.each(data,function(i, num) {
        $this.delay(1000, 'carSwitchers');
        $this.queue('imgSwitchers', function(next) {
            $this.attr('src', num.url);
            /* show something, and if they hit "yes", run the next function. */
            next();
            if(!($this.queue('imgSwitchers').length && currentObject.isActive)){
                runSwitcherAnimation(data, $this, currentObject);
            }
        });
    });
    $this.dequeue('imgSwitchers');
}

$.fn.latestCarSlider = function(){
    return this.each(function(){
        var $this = this;

        /**
         * 
         */
        $this.slideTab = function(){
            $this.slider.animate({
                marginTop : '+=' + ($this.indexPrevious - $this.indexSelected) * $this.deltaH + "px"
            }, '1000');
        };

        /**
         * 
         */
        $this.getNextIndex = function(){
            if($this.indexSelected < $this.buttonCollectionSize){
                return $this.indexSelected + 1;
            } else {
                return 1;
            }
        };

        /**
         * 
         */
        $this.runQueue = function(){
            $this.queue = $({});
            $this.buttonCollection.each(function(i,num){
                $this.queue.delay(10000, 'carRotator');
                $this.queue.queue('carRotator', function(next) {
                    $this.buttonCollection.eq($this.getNextIndex()-1).click();
                    next();
                    if(!($this.queue.queue('carRotator').length)){
                        $this.runQueue();
                    }
                });
            });

            $this.queue.dequeue('carRotator');
        };

        /**
         * 
         */
        $this.slider = $(this).find('ul.latest-car-list li:first');
        $this.sliderCollection = $(this).find('ul.latest-car-list');
        $this.buttonCollection = $(this).find('ul.rotator-lates li a');
        $this.buttonCollectionSize = $this.buttonCollection.length;
        $this.indexPrevious = 1;
        $this.indexSelected = 1;
        $this.deltaH = parseInt($this.sliderCollection.innerHeight())+2;

        $this.buttonCollection.click(function(){
            if($(this).hasClass('active')) return false;

            $this.indexPrevious = $this.buttonCollection
                .index($this.buttonCollection.filter('a.active').removeClass('active'))+1;
            
            $this.indexSelected = $this.buttonCollection
                    .index($(this).addClass('active'))+1;

            $this.slideTab();
            return false;
        });

        $this.runQueue();
        $(this).hover(function(){
            $this.queue.queue('carRotator', []);
            $this.queue.stop();
        }, function(){
            $this.runQueue();
        });
        
        
        return $this;
	});
};